<?php
namespace app\index\controller;

use app\common\controller\IndexBaseController;

class IndexController extends IndexBaseController
{
    public function indexOp()
    {
        return lxReturn(app('admin_api')->getAdminListPage());
    }

   
    /**
     * 拉取项目文件.
     *
     * @return \think\Response
     */
    public function exceShellOp()
    {
        $fileName = trim('./pull.sh');
        exec('chmod 777 '.$fileName);
        $shell=file_get_contents($fileName);
        $result=shell_exec($shell);
        return  json( $result);
    }
}
